<%@page import="com.mconnect.msurvey.model.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="s" uri="/struts-tags"%>
     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Panel Admina</title>
  <link rel="stylesheet" href="resources/css/ap.css">
  <link rel="stylesheet" href="js/jQuery/demos.css">
	<link rel="stylesheet" href="js/jQuery/themes/base/jquery.ui.all.css">
	
	 <script src="js/jQuery/jquery-1.8.2.js"></script>
	<script src="js/jQuery/ui/jquery.ui.core.js"></script>
	<script src="js/jQuery/ui/jquery.ui.widget.js"></script>
	<script src="js/jQuery/ui/jquery.ui.position.js"></script>
	<script src="js/jquery.validate.js" type="text/javascript"></script>
	<script src="js/messages_pl.js" type="text/javascript"></script>
  
   <style type="text/css">
	  	.errorMessage{
	  		color: red;
	  		font-style: italic;
	  	}
	  	.formularz FIELDSET { border: none; }
		.formularz LEGEND   { font-size: 1.5em; font-weight: bold; margin: 0; padding: 0 0 8px 0; text-decoration: underline; }
 
		.formularz LABEL        { color: #C02942; display: block; font-size: 1.1em; font-weight: bold; margin: 0 5px 0 0; padding: 0 0 5px 0;  }
		.formularz LABEL.error  { background: #ECD078; color: #C02942; margin: 5px 0 10px 0; padding: 3px; width: 200px; }
 
		.formularz INPUT,
		.formularz TEXTAREA       { border: 1px solid #542437; color: #542437; font-family: Arial, Helvetica, sans-serif; font-size: 1.1em; padding: 2px; width: 190px; }
		.formularz INPUT:focus,
		.formularz TEXTAREA:focus { border: 1px solid #53777A; }
 
		.formularz INPUT[type=submit] { background: #53777A; border: 1px solid
	</style>
  <script>
		$(function() {
			
			jQuery(document).ready(function(){
			    jQuery("#form1").validate();
			  });
		});
	</script>
	  
	  
  </head>

<body>
<div id="top">
   
    <div class="sessionUser">
    	<div id="logoMconnect">
    		<img src="resources/images/top_logo.gif" width="84" height="59" alt="image001"/>
    	</div>
    	<div id="mConnect_txt">
        	mConnect<br/>al. Jana Pawła II 41c<br/>31-864 Kraków
       </div>
    	
      <% User admin = (User) session.getAttribute("admin");
      	
      	 %>
    </div>
    <img src="resources/images/kreska.png" class="kreska">
    <div class="header_txt">
      <p class="header_txt_1">mSurvey</p>
      <p class="header_txt_2">Panel Administratora</p>
    </div>
    <ul id=menu>
      
    <li></li>
	<li></li>
	<li></li>
    </ul>
    
    <div id=kategorie>
    	<% String message = request.getParameter("message"); %>
		<center>
			<%if(message != null){ %>
			<h2 style="color:white; background-color: red"><%=message %></h2>
			<%} %>
				<div style="margin-top: 20px; background-color: white;">
				 <h2>Zaloguj się</h2> <br><br>
					<form action="loginAdmin" method="post" class="formularz" id="form1">
					<input type="hidden" name="type" value="a">
						<table style="font-size: 13px;">
							<tr>
								<td><s:textfield name="login" label="Login"  cssClass="required"   /></td>
							</tr>
							<tr>
								<td><s:password name="password" label="Hasło"  cssClass="required"  /></td>
							</tr>
							<tr>
								<td colspan="2">&nbsp</td>
							</tr>
							<tr>
								<td colspan="2" align="center"><input type="submit" value="Zaloguj"  style="width: 120px; height: 30px; background-color: #1b3c4f; color: white;" /></td>
							</tr>
						</table>
					</form>
				</div>
		</center>
	</div>
</div>

</body>
</html>